import Vue from 'vue'
import VueRouter from 'vue-router'
import MyIndex from '@/views/MyIndex.vue'
import MyItem from '@/views/MyItem.vue'
import MyOrder from '@/views/MyOrder.vue'
import MyInfo from '@/views/MyInfo.vue'

Vue.use(VueRouter)

const router = new VueRouter({
  routes: [
    {path:'/',redirect:'/index'},
    {path:'/index',component:MyIndex},
    {path:'/item',component:MyItem},
    {path:'/order',component:MyOrder},
    {path:'/info',component:MyInfo},
  ]
})

export default router